Skip to content

feat: implement bet slip summary, oracle circuit breaker, and dispute UI#647

Merged
Hahfyeex merged 1 commit intoHahfyeex:mainfrom
Fahmedo:fix/issues-557-587-591
Mar 30, 2026
Merged

feat: implement bet slip summary, oracle circuit breaker, and dispute UI#647
Hahfyeex merged 1 commit intoHahfyeex:mainfrom
Fahmedo:fix/issues-557-587-591

Conversation

@Fahmedo
Copy link
Copy Markdown

@Fahmedo Fahmedo commented Mar 30, 2026

Summary

Closes #582, Closes #609, Closes #591 Closes #587

Replaces #646 (had merge conflicts with main).


#591 — Bet Slip Summary Before Freighter Signing

  • BetSlipSummary full-screen overlay with plain-language bet details
  • All amounts computed from stroop integers (no floating point)
  • Slippage warning when odds drift > 50 bps since amount entry
  • Confirm & Sign triggers Freighter; Back returns to bet form without state loss
  • Unit tests covering all field calculations, slippage detection, and button interactions

#587 — Oracle Circuit Breaker for Silent Backend Failures

  • Consecutive failure counter increments on every failed cycle
  • Admin webhook alert after 3 consecutive failures
  • Circuit breaker trips at 10 failures: oracle interval paused, critical alert sent
  • Counter resets to 0 on any successful cycle
  • GET /api/health/oracle endpoint pinged before each cycle
  • Unit tests covering failure counting, alert trigger, and circuit breaker

#557 — Dispute Submission UI for Market Outcomes

  • POST /api/markets/:id/dispute endpoint with resolution history logging
  • GET /api/markets/:id/dispute-status endpoint
  • DisputeModal with reason validation (min 50 chars) and optional evidence URL
  • DisputeStatusTracker showing Submitted → Under Review → Resolved
  • Duplicate dispute prevention (button disabled after submission)

… UI (closes Hahfyeex#557, closes Hahfyeex#587, closes Hahfyeex#591)

- Hahfyeex#591: BetSlipSummary component with stroop-integer amounts, slippage warning, unit tests
- Hahfyeex#587: Oracle circuit breaker with failure counter, admin alert at 3 failures, pause at 10, health ping endpoint
- Hahfyeex#557: Dispute submission UI with DisputeModal, reason validation, DisputeStatusTracker
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@Fahmedo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Hahfyeex Hahfyeex merged commit bd7b4d6 into Hahfyeex:main Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants